package ru.linnenson.darshana.infrastructure.services;

import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;
import ru.linnenson.darshana.application.repositories.TaskRepository;
import ru.linnenson.darshana.application.services.TasksCreator;
import java.util.List;

@Slf4j
@Service
@RequiredArgsConstructor
public class TasksCreatorImpl implements TasksCreator {

  private final TaskRepository taskRepository;

  @Override
  public Integer createMath(final Integer source, final Integer theme, final Integer numberInKim,
                            final List<String> tags) {
    return taskRepository.createMath(source, theme, numberInKim, tags);
  }

  @Override
  public Integer createPhysic(final Integer level, final Integer source, final Integer theme, final Integer numberInKim,
                              final List<String> tags) {

    return taskRepository.createPhysic(level, source, theme, numberInKim, tags);
  }
}
